PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

PlotIconRef

Draws an icon using appropriate size and depth data from an IconRef .

pascal OSErr PlotIconRef(
                     Rect*theRect,
                     IconAlignmentType align,
                     IconTransformType transform,
                     IconServicesUsageFlagsiconServicesUsageFlags,
                     IconRef iconRef);

theRect
A pointer to a value of type Rect specifying the rectangle where the icon is to be drawn.

align
A value of type IconAlignmentType specifying how Icon Services should align the icon within the rectangle. for a description of possible return values, see Icon Alignment Constants

transform
A value of type IconTransformType specifying how Icon Services should modify the appearance of the icon.

iconServicesUsageFlags
Reserved for future use. Pass the kIconServicesDefaultUsageFlags constant in this parameter.

iconRef
A pointer to a value of type IconRef specifying the icon to draw.

function result
A result code. See Icon Services Result Codes for a description of possible return values.
DISCUSSION
This function is similar to the Icon Utilities function PlotIconSuite . For a description of Icon Utilities functions and data structures, see Inside Macintosh: More Macintosh Toolbox.


© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)